package com.lovo.project.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

/**
 * @title 订单实体类
 * @author: pankez
 * @date: 2020/11/3 17:35
 */
@Data
public class OrderDO implements Serializable {
    /**订单ID*/
    private Integer orderId;
    /**订单编号*/
    private Integer orderNumber;
    /**订单总金额*/
    private Integer orderTotal;
    /**门店*/
    private String orderShop;
    /**评分*/
    private Integer orderScore;
    /**评论内容*/
    private String orderContent;
    /**评论性质*/
    private String orderNature;
    /**评论人,买家*/
    private String orderBuyer;
    /**订单状态*/
    private  String orderStatus;
    /**订单图片*/
    private String orderPic;
    /**订单日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp orderDate;
    /**订单地址*/
    private String orderAddress;

    /**订单拥有的商品集合*/
    private List<GoodDO> goods;

    public OrderDO() {
    }

    public OrderDO(Integer orderId, String orderStatus) {
        this.orderId = orderId;
        this.orderStatus = orderStatus;
    }
}

